package cn.jiahua.hospital.mapper;


import cn.jiahua.hospital.dto.PageDepartmentDto;

import cn.jiahua.hospital.dto.TdepartmentsDto;

import cn.jiahua.hospital.pojo.Tdepartments;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface TdepartmentsMapper {


    public TdepartmentsDto getTdepartmentsById(@Param(value = "id") Integer id);

    public List<Tdepartments> getTdepartmentsListByMap(Map<String, Object> param);

    public List<TdepartmentsDto> getTdepartmentsListByMap1(Map<String, Object> param);

    public Integer getTdepartmentsCountByMap(Map<String, Object> param);

    public Integer getTdepartmentsCountByMap1(Map<String, Object> param);

    public Integer insertTdepartments(TdepartmentsDto tdepartments);

    public Integer updateTdepartments(TdepartmentsDto tdepartments);

    public Integer deleteTdepartmentsById(@Param(value = "id") Integer id);

    public Integer batchDeleteTdepartments(Map<String, List<String>> params);

    public List<Tdepartments> getTdepartments(@Param(value = "hospitalId") Integer hospitalId);

    public List<Integer> getTdepartmentsByCondition(@Param(value = "hospitalId")Integer hospitalId,
                                                @Param(value = "tdepartmentsName")String tdepartmentsName);

    public PageDepartmentDto getPageDepartment(@Param(value = "hospitalId")Integer hospitalId,
                                                     @Param(value="tdepartmentsId")Integer tdepartmentsId);

    public List<Tdepartments> getTdepartments1(@Param(value = "departmentsId")Integer departmentsId);

    public List<Tdepartments> selectTdep(@Param(value ="hospitalId") Integer hospitalId,
                                         @Param(value = "departmentsId") Integer departmentsId);
}
